package com.heima.feign.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.SensitiveDto;
import com.heima.model.wemedia.pojos.WmSensitive;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author rookie001
 * @creat 2023-06-19-15:56
 */
@FeignClient("leadnews-wemedia")
public interface ISensitiveClient {
    //查询
    @PostMapping("/api/v1/sensitive/list")
     ResponseResult list(@RequestBody SensitiveDto dto);
    //删除
    @DeleteMapping("/api/v1/sensitive/del/{id}")
     ResponseResult del(@PathVariable Integer id);
    //保存
    @PostMapping("/api/v1/sensitive/save")
     ResponseResult save(@RequestBody WmSensitive wmSensitive);
    //修改
    @PostMapping("/api/v1/sensitive/update")
     ResponseResult update(@RequestBody WmSensitive wmSensitive);
}
